package com.person.service;

import com.person.pojo.Orders;
import com.person.pojo.PageBean;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;


public interface OrderService {
    void submit(Orders orders);

    /**
     * 前台查看订单
     * @param page
     * @param pageSize
     * @return
     */
    PageBean getPage(Integer page, Integer pageSize);

    /**
     * 后台查看订单
     * @param page
     * @param pageSize
     * @param beginTime
     * @param endTime
     * @return
     */
    PageBean getBackendPage(Integer page, Integer pageSize, LocalDateTime beginTime, LocalDateTime endTime,String number);

    /**
     * 派送完成
     * @param orders
     * @return
     */
    int orderDelivery(Orders orders);
}
